package com.holly.unit.system.modular.user.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.holly.unit.system.api.HisUserPasswordServiceApi;
import com.holly.unit.system.api.pojo.user.HisUserPasswordDTO;
import com.holly.unit.system.api.pojo.user.SysUserDTO;
import com.holly.unit.system.modular.user.entity.SysHisUserPassword;

/**
 * <p>
 * 用户历史密码 服务类
 * </p>
 *
 * @author scy
 * @since 2020-05-08
 */
public interface SysHisUserPasswordService extends IService<SysHisUserPassword>, HisUserPasswordServiceApi {
    SysHisUserPassword addPassword(Long userId, SysHisUserPassword hisUserPassword);

    /**
     * 获取最新的密码
     * @param userId
     * @return
     */
    HisUserPasswordDTO findPasswordExpiringUser(Long userId);

}
